package com.example.android.data.bean

import com.zxf.basic.adapter.MultiType

/**
 * @author zjc
 * @date 2022/12/28
 */
class User : MultiType {
    // 姓名
    var name: String = "小红"
    // 年龄
    var age: Int = 18
    // 性别
    var sex: Int = 0

    override fun getItemViewType(): Int {
        return if (sex == 0) 1 else 2
    }
}
